package com.mvp.lt.airlineview.showpicture;

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.mvp.lt.airlineview.R;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiuTao
 * @description:
 * @date : 2021/1/8 15:54
 */
public class ShowPictureActivity extends Activity {
    private List<PictureBean> list = new ArrayList<>();

    /**
     * {
     * "airPointId":"1347008284493680642",
     * "airPointImageUrl":"https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210107/b9b8e25c1c114389729ba048a2ba4e85.jpg",
     * "pointFlyCount":2
     * },
     * {
     * "airPointId":"1347008284783087617",
     * "airPointImageUrl":"https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210107/811faefc129815dafb7c56a70ec82640.jpg",
     * "pointFlyCount":2
     * },
     * {
     * "airPointId":"1347008285064105985",
     * "airPointImageUrl":"https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210107/ceaaea16949f60cc55d91381017cedad.jpg",
     * "pointFlyCount":2
     * },
     * {
     * "airPointId":"1347008285303181313",
     * "airPointImageUrl":"https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210107/0df36a7a7653b09e7d2cbea8a9bcf3b3.jpg",
     * "pointFlyCount":2
     * }
     *
     * @param savedInstanceState
     */
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_picture);
        WayPointActionChooseAdapter wayPointActionChooseAdapter = new WayPointActionChooseAdapter(null,this);
        RecyclerView recyclerView = findViewById(R.id.recyclerView);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(wayPointActionChooseAdapter);
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/a33dc2a7a146c3bed99fc5e813198302.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/dccfdcfa920dd989408b2a0c5ad1306c.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/45ba16e9ea607d4681bf5865f297a373.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/b05d1805ec16266e893d00e41185d60f.jpg"));


        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/a3ebe9b37546b90c1eba8289a19c7916.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/6e2ec67b79576ff3cda8d0c7d895f537.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/7bb25c2e19f6d8c29b134235c4d83984.jpg"));
        list.add(new PictureBean("https://flysystem.oss-cn-beijing.aliyuncs.com/upload/20210108/909843a181155eb129622cd0d532ba00.jpg"));


        wayPointActionChooseAdapter.setNewData(list);
    }
}
